import Vue from 'vue'
import App from './App'

import store from './store'

Vue.config.productionTip = false

Vue.prototype.$store = store
Vue.prototype.$backgroundAudioData = {
	playing: false,
	playTime: 0,
	formatedPlayTime: '00:00:00'
}
Vue.prototype.$adpid = "1111111111"

Vue.mixin({
	methods:{
		errorMsg(msg) {
			uni.showToast({
				title: msg,
				icon: 'none',
				mask: true
			})
		},
		successMsg(msg) {
			uni.showToast({
				title: msg,
				icon: 'none',
				mask: true
			})
		}
	}
})

App.mpType = 'app'

const app = new Vue({
	store,
	...App
})
app.$mount()
